package com.ruoyi.household.domain.ro;

import com.ruoyi.user.domain.HsUser;
import lombok.Data;

@Data
public class RegisterRo {
      private  Long   id;
      private  String householdXqName;
      private  String householdFloorName;
      private  String householdName;
      private  String householdPhone;
      private  String householdAddress;
      private  Byte householdStatus=1;
      private  String statement;
      private  Long floorId;

      public static RegisterRo registerRo(HsUser hsUser){
            RegisterRo registerRo = new RegisterRo();
            registerRo.setHouseholdName(hsUser.getUserName());
            registerRo.setHouseholdPhone(hsUser.getUserPhone());
            registerRo.setHouseholdAddress(hsUser.getUserAddress());
            registerRo.setHouseholdFloorName(hsUser.getUserFloor());
            registerRo.setHouseholdXqName(hsUser.getUserXq());
            return  registerRo;
      }
}
